<!-- Show User -->
<head>
  <meta name="layout" content="app" />
  <gui:resources components="autoComplete, dialog"/>
  <title>Show User</title>
</head>
<body>
  <div class="body">
    <h1>Show User</h1>
    <g:render template="/common/flashMessage" />
    <div class="dialog">
      <table><tbody>
        <tr class='prop'>
          <td valign='top' class='name'><label for='username'>Username:</label></td>
          <td valign='top' class='value'>${user?.username?.encodeAsHTML()}</td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name"><label for="enabled">Enabled:</label></td>
          <td valign="top" class="value">${user.enabled}</td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name"><label for="roles">System Roles:</label></td>
          <td valign="top" class="value">
            <ul>
              <g:each in="${roleMap}">
                <li>
                  ${it.key.description}
                </li>
              </g:each>
            </ul>
          </td>
        </tr>
        <g:render template="/person/showPerson" />
      </tbody></table>
    </div>
    <tdcmw:linkButton action="edit" label="Edit" params="[id:user.id]" />
  </div>
</body>
